/*
 * @Author: your name
 * @Date: 2021-11-21 21:51:39
 * @LastEditTime: 2021-11-22 11:29:26
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \shenshan_cim\src\store\modules\sjsx.js
 */
// AirCity 模块状态管理
const szy = {
    namespaced: true, //定义module另外命名时，需要在module中加一个命名空间namespaced: true属性，否则命名无法暴露出来，导致报[vuex] module namespace not found in mapState()等错误。
    state: {
      sk: null,
      sc: null,
      hd: null,
      bz: null,
    },
    mutations: {
      setsk_mut(state, val) {
        state.sk = val;
      },
      setsc_mut(state, val) {
        state.sc = val;
      },
      sethd_mut(state, val) {
        state.hd = val;
      },
      setbz_mut(state, val) {
        state.bz = val;
      },
    },
    actions: {
      setsk_act({ commit }, val) {
        commit("setsk_mut", val);
      },
      setsc_act({ commit }, val) {
        commit("setsc_mut", val);
      },
      sethd_act({ commit }, val) {
        commit("sethd_mut", val);
      },
      setbz_act({ commit }, val) {
        commit("setbz_mut", val);
      },
    },
  };
  
  export { szy };
  